#pragma once

#include "GameObject.h"
#include "Platform.h"

class SpriteObject : public GameObject
{
public:
	int hostHealth;
	int maxHostHealth;
	SpriteObject(Vector2 pos_, Vector2 scale_);
	std::string preTexture;
	bool grounded() {return platform;}
	bool moving;
	int getTextureNum() {return textureNum;}
	GameObject* platform;
	void checkPlatform();
	bool dead() { return hostHealth <= 0; }
	float deadTime;
	bool gone;
	virtual void renderExtras() {}
protected:
	float textureChangeElapsedTime;
	int textureNum;
};